var debug = true;

var mod = [];
//var I_P   = 'http://static1.50sg.com/';  //image path
var I_P   = '_images/';  //image path
var active = true;



var G = new Cache('global');
var recource = new Cache('recource');

//配置文件,用户信息文件,统一保存 C
//所有地方使用,统一从C调用

var buildAttribute = {};
var businessmen_num = 0;  //城池商人总数量
var free_businessmen_num = 0;  //城池空闲商人数量



var union_name = null;		//所属联盟名称
var general_name = null;	//将领名称

var transaction_proportion = {min:1, max:1};

var general_append = 0;  //将领加成值

var res_name = {1:'木材', 2:'泥土', 3:'铁矿', 4:'粮食'}


var tip_msg = {
	army_cz:0,
	army_zy:0,
	army_bjg:0,
	army_bzy:0,
	army_hc:0,

	army_zb:0,
	army_ky:0,

	army_msg:0,
	user_msg:0,
	sys_msg:0
};
//window.DHistory.create({
//        toJSON: function(o) {
//                return Object.toJSON(o);
//        }
//        , fromJSON: function(s) {
//                return s.evalJSON();
//        }
//});
//
//
//Event.observe(window, 'load', function() {
//        DHistory.initialize();
//        DHistory.addListener(ajaxListener);
//});

var client_version = 1.02;
var server_time_base = new Date();
